# Tanım: Xpdf 3.0'a dayalı PDF işleme kütüphanesi
# URL: http://poppler.freedesktop.org/
# Paketçi: milisarge
# Gerekler: xorg-libxxf86vm libpng xorg-fontconfig libjpeg-turbo cairo libxml2 openjpeg lcms2 
# Grup: kütüphane

datasurum=0.4.7
isim=poppler
surum=0.46.0
devir=1

kaynak=(
http://poppler.freedesktop.org/$isim-$surum.tar.xz
http://poppler.freedesktop.org/poppler-data-$dataversion.tar.gz)

derle() {
cd poppler-$surum
 
CXXFLAGS="-std=c++11"
 
./configure --prefix=/usr      \
	--sysconfdir=/etc      \
	--disable-static       \
	--enable-build-type=release \
	--enable-cmyk                \
	--enable-xpdf-headers

make
make DESTDIR=$PKG install

cd ../poppler-data-$dataversion
make prefix=/usr DESTDIR=$PKG install

rm -f $PKG/usr/lib/pkgconfig/poppler-{glib,qt4,qt5}.pc
rm -f $PKG/usr/lib/poppler-{glib*,qt4*,qt5*}
rm -f $PKG/usr/lib/libpoppler-{glib*,qt4*,qt5*}

rm -f $PKG/usr/bin/poppler-glib-demo
rm -rf $PKG/usr/include/poppler/glib/

rm -f $PKG/usr/bin/poppler-qt4-demo
rm -rf $PKG/usr/include/poppler/qt4/

rm -f $PKG/usr/bin/poppler-qt5-demo
rm -rf $PKG/usr/include/poppler/qt5/

}
